home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / FileGetShortcut.au3 < prev    next >
Text File  |  2006-06-17  |  369b  |  7 lines

  1. ; Sets a shortcut with ctrl+alt+t hotkey
  2. FileCreateShortcut(@WindowsDir & "\Explorer.exe",@DesktopDir & "\Shortcut Test.lnk",@WindowsDir,"/e,c:\", "This is an Explorer link;-)", @SystemDir & "\shell32.dll", "^!t", "15", @SW_MINIMIZE)
  3.  
  4. ; Read in the path of a shortcut
  5. $details = FileGetShortcut(@DesktopDir & "\Shortcut Test.lnk")
  6. MsgBox(0, "Path:", $details[0])
  7.